TARGET  := test
  
CFLAGS  := -g -Wall -O0 $(DEFINES) $(INCLUDE)
  
SOURCE  := $(wildcard *.c) $(wildcard *.cpp)
OBJS    := $(patsubst %.c,%.o,$(patsubst %.cpp,%.o,$(SOURCE)))
  
.PHONY : everything objs clean
  
everything : $(TARGET)
  
all : $(TARGET)
  
objs : $(OBJS)
  
clean :
	rm -fr *.o
	rm test
    
$(TARGET) : $(OBJS)
	$(CC) $(CXXFLAGS) -o $@ $(OBJS) $(LDFLAGS) $(LIBS)

